﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="top.aspx.cs" Inherits="admin_top" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>top</title>
    <link href="skin/css/base.css" rel="stylesheet" type="text/css">
    <link href="skin/css/top.css" rel="stylesheet" type="text/css" />
    <script language='javascript'>
        var preFrameW = '206,*';
        var FrameHide = 0;
        var curStyle = 1;
        var totalItem = 9;
        function ChangeMenu(way) {
            var addwidth = 10;
            var fcol = top.document.all.btFrame.cols;
            if (way == 1) addwidth = 10;
            else if (way == -1) addwidth = -10;
            else if (way == 0) {
                if (FrameHide == 0) {
                    preFrameW = top.document.all.btFrame.cols;
                    top.document.all.btFrame.cols = '0,*';
                    FrameHide = 1;
                    return;
                } else {
                    top.document.all.btFrame.cols = preFrameW;
                    FrameHide = 0;
                    return;
                }
            }
            fcols = fcol.split(',');
            fcols[0] = parseInt(fcols[0]) + addwidth;
            top.document.all.btFrame.cols = fcols[0] + ',*';
        }


        function mv(selobj, moveout, itemnum) {
            if (itemnum == curStyle) return false;
            if (moveout == 'm') selobj.className = 'itemsel';
            if (moveout == 'o') selobj.className = 'item';
            return true;
        }

        function changeSel(itemnum) {
            curStyle = itemnum;
            for (i = 1; i <= totalItem; i++) {
                if (document.getElementById('item' + i)) document.getElementById('item' + i).className = 'item';
            }
            document.getElementById('item' + itemnum).className = 'itemsel';
        }

    </script>
</head>
<body bgcolor='#ffffff'>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="skin/images/frame/topbg.gif">
        <tr>
            <td width='20%' height="60">
                <img src="skin/images/frame/logo.gif" />
            </td>
            <td width='80%' align="right" valign="bottom">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="right" height="26" style="padding-right: 10px; text-align: right; line-height: 26px;">
                            您好：<span class="username"> </span>，欢迎进入搜酷CMS管理系统！ [<a href="#" target="_blank">网站主页</a>]
                            [<a href="ResetPWD.aspx" target="main">修改密码</a>] [<a href="UserLogin.aspx" target="_top">注销退出</a>]&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="right" height="34" class="rmain">
                            <%--  <dl id="tpa">
                                <dd class='img'>
                                    <a href="javascript:ChangeMenu(-1);">
                                        <img vspace="5" src="skin/images/frame/arrl.gif" border="0" width="5" height="8"
                                            alt="缩小左框架" title="缩小左框架" /></a></dd>
                                <dd class='img'>
                                    <a href="javascript:ChangeMenu(0);">
                                        <img vspace="3" src="skin/images/frame/arrfc.gif" border="0" width="12" height="12"
                                            alt="显示/隐藏左框架" title="显示/隐藏左框架" /></a></dd>
                                <dd class='img' style="margin-right: 10px;">
                                    <a href="javascript:ChangeMenu(1);">
                                        <img vspace="5" src="skin/images/frame/arrr.gif" border="0" width="5" height="8"
                                            alt="增大左框架" title="增大左框架" /></a></dd>
                                <dd>
                                    <div class='itemsel' id='item1' onmousemove="mv(this,'move',1);" onmouseout="mv(this,'o',1);">
                                        <a href="main.aspx" onclick="changeSel(1)" target="main">主菜单</a></div>
                                </dd>
                                <dd>
                                    <div class='item' id='item2' onmousemove="mv(this,'m',2);" onmouseout="mv(this,'o',2);">
                                        <a href="ProductManager.aspx" onclick="changeSel(2)" target="main">产品管理</a></div>
                                </dd>
                                <dd>
                                    <div class='item' id='item8' onmousemove="mv(this,'m',8);" onmouseout="mv(this,'o',8);">
                                        <a href="PageAdManager.aspx" onclick="changeSel(8)" target="main">广告管理</a></div>
                                </dd>
                                <dd>
                                    <div class='item' id='item4' onmousemove="mv(this,'m',4);" onmouseout="mv(this,'o',4);">
                                        <a href="ModelProductManager.aspx" onclick="changeSel(4)" target="main">栏目产品</a></div>
                                </dd>
                                <dd>
                                    <div class='item' id='item5' onmousemove="mv(this,'m',5);" onmouseout="mv(this,'o',5);">
                                        <a href="LogManager.aspx" onclick="changeSel(5)" target="main">系统日志</a></div>
                                </dd>
                                <dd>
                                    <div class='item' id='item9' onmousemove="mv(this,'m',9);" onmouseout="mv(this,'o',9);">
                                        <a href="ArticleManager.aspx" onclick="changeSel(9)" target="main">文章管理</a></div>
                                </dd>
                            </dl>--%>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</body>
</html>
